package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 保养记录
 *
 * @author code-generate
 * @date 2022-02-17
 */
@Data
@DbTable(tableName = "t_maintenance_record")
public class MaintenanceRecord extends BaseEntity {

    /**
     * 记录时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 树木id
     */
    @DbTableField(columnName = "c_tree_id", dbType = DbTypeEnum.INTEGER)
    public Integer treeId ;

    @DbTableField(columnName = "c_record_code", dbType = DbTypeEnum.VARCHAR)
    private String recordCode;

}
